package com.wctj.api.business.common.listener;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
public class TransactionalEventExecutor {

    @Transactional(rollbackFor = Exception.class)
    public void exec(Runnable runnable){
        runnable.run();
    }
}
